﻿using Esri.ArcGISRuntime.Geometry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WRJClient.Utils
{
    class ArcgisUtils
    {
        public static bool IsExtentValid(Envelope extent)
        {
            if (extent != null)
            {
                if (extent.IsEmpty)
                {
                    return false;
                }
                else if (extent.XMin == 0 && extent.XMax == 0 || extent.YMin == 0 && extent.YMax == 0)
                {
                    return false;
                }
                return true;
            }
            return false;
        }
    }
}
